<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>开设教学班</title>
<load href="__JS__/jQuery/jquery.js" />
       	<load href="__JS__/jQuery/jquery.form.js" />
		<script type="text/JavaScript">
        $(function(){
            $('#form1').ajaxForm({
                //beforeSubmit:  function(){alert("before");},  // pre-submit callback
                success:       complete,  // post-submit callback
                error:function(){alert("error");},
                dataType: 'json'
            });
            
            function complete(data){
                if (data.status==1)
                {
                	window.location='__URL__/classdetail';
                }else{
                    $('#result').html(data.info).show();
                }
            }
        });
        </script>
</head>
<body bgcolor="#eeeeee">
<layout name="Auth:header" />
<div  style="position:relative; top:-70px; left:240px; font-size:12px; width:60%;">
	当前位置：
	<a href='__APP__/index/index'>主页</a>>
	<a href='__URL__/index'>后台管理</a>>
	<a href="__URL__/classdetail">教学班管理</a>>
	开设教学班
</div>
<div style="width:70%; position:relative; left:160px;" align="right"><a href="__URL__/classdetail" style="text-decoration:none">返回</a></div>
<div id='result' style="position:relative; left:330px; color:red; font-size:12px;"></div>
	<div style="position:relative; left:210px;">
		<form  id='form1' method='post' action='__URL__/class_add'>
			教学班序号<input type='text' name='number'>
			课程名称<select name="courseid">
										 <volist name='list' id='vo'>
											<option value =	{$vo.courseid}>{$vo.cname}</option>
										 </volist>
										</select>
			<input type='hidden' name='no' value={$no}>
			<input type='submit' value='提交'>
		</form>
	</div>
</body>
</html>